package com.nacrtstudio.webgiftshop.pages.admin;

import org.apache.tapestry5.annotations.Persist;
import org.apache.tapestry5.ioc.annotations.Inject;

import com.nacrtstudio.webgiftshop.facade.Controller;
import com.nacrtstudio.webgiftshop.model.shop.PackedGift;

public class PackedGiftInfo {
	@Inject
	private Controller controller;
	
	@Persist
	private PackedGift packedGift;

	public PackedGift getPackedGift() {
		return packedGift;
	}

	public void setPackedGift(PackedGift packedGift) {
		this.packedGift = packedGift;
	}
	
	Object onSuccess(){
		controller.createPackedGift(packedGift);
		return PackedGifts.class;
	}
}
